﻿@model IEnumerable<SimpleProject.Models.User>


<p>
    @Html.ActionLink("Yeni Kullanıcı Oluştur", "Create")
</p>
@{
    var grid = new WebGrid(Model);
    <div class ="userList">
   @grid.GetHtml()
   </div>
    }
@*<table border ="1">
    <tr align="center">
        <th>
            @Html.DisplayNameFor(model => model.name)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.SurName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.MailAdres)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Age)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CvInfo)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.IsPassive)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr  align="center">
        <td>
            @Html.DisplayFor(modelItem => item.name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.SurName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MailAdres)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Age)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CvInfo)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IsPassive)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.id }) |
            @Html.ActionLink("Details", "Details", new { id=item.id }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.id })
        </td>
    </tr>
}

</table>
*@